<?php
ob_start();
header('Content-type:text/html; charset=utf-8');
$g4_path = '..';
set_include_path(get_include_path().PATH_SEPARATOR.$g4_path."/lib");
$lib =  "$g4_path/lib.php";
require_once ("$g4_path/common.php");
require_once ($lib);
require_once ('Template_.class.php');
if(!$_SESSION['ss_mb_id'] && !strstr($_SERVER['PHP_SELF'], 'index')) {
    goto_url('/teacher');
} else if($_SESSION['ss_mb_id']) {
   
   $mb_id = $_SESSION['ss_mb_id'];
   $division = mysql_fetch_row(mysql_query("SELECT mb_division, mb_no, mb_id FROM g4_member WHERE mb_id = '$mb_id'"));
   $teacher = $division[1]; 
   $teacherid = $division[2]; 

    if(!$_SESSION || !$teacher) {
    alert("로그인한 선생님만 접근할 수 있습니다.", '/');
        
    } else if($_temp['mb_division'] != "학생" && $_temp['mb_division'] != '최고관리자' && $_temp['mb_division'] != '관리자') {
    alert('로그인한 선생님만 접근할 수 있습니다.', '/');
    }

    /*
   if($division[0] != '강사' || !$teacher) {
        alert('강사만 접근가능합니다.', '/'); 
   }
   */
}
mysql_query('SET NAMES UTF8');

$path = "./"; 
if($_GET['bo_table']) {
    $path = "../teacher/"; 
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
</script><head>
<title>English book village_Back office</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script type="text/javascript" src="/prototype.js"></script>
<link href="office.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td width="146" valign="top" background="../admin/images/sub_bg_menu.gif"><table width="146" border="0" cellpadding="0" cellspacing="0">
<tr> 
<td width="146" height="48" bgcolor="#FFFFFF"><img src="../admin/images/1blank.gif" width="1" height="1"><a name="top"></a></td>
</tr>
<tr> 
<td><img src="../admin/images/sub_img.gif" width="136" height="103" border="0"></td>
</tr>
</table>
</td>
<td valign="top"> 
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="../admin/images/sub_bg.gif">
<tr> 
<td><table width="823" height="48" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr> 
<td valign="top"><img src="../admin/images/1blank.gif" width="1" height="1"></td>
<td width="67"><a href="<?php echo $path; ?>logout.php"><img src="../admin/images/main_but_out.gif" alt="" name="login1" width="58" height="16" border="0" id="login2"></a></td>
</tr>
</table></td>
</tr>
<tr> 
<td bgcolor="#5DC02F"><table width="823" border="0" cellpadding="0" cellspacing="0">
<tr> 
<td width="823"><img src="../admin/images/sub_img_teacher.gif" width="504" height="103"></td>
</tr>
</table></td>
</tr>
<tr> 
<td height="18"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../admin/images/sub_bg.gif">
<tr>
<td><table width="823" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="../admin/images/sub_bg_title.gif"><img src="../admin/images/sub_title_teacher01.gif" width="300" height="70" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="40" valign="top"><table width="823" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="../admin/images/1blank.gif" width="1" height="1" /></td>
<td width="60" align="right" bgcolor="#000000"><a href="../bbs/board.php?bo_table=t_notice"><img src="../admin/images/sub_teacher_menu01.gif" width="47" height="24" border="0" /></a></td>
<td width="26" bgcolor="#000000"><img src="../admin/images/sub_menu_line.gif" width="26" height="24" /></td>
<td width="46" bgcolor="#000000"><a href="<?php echo $path; ?>courseValuationDetail.php"><img src="../admin/images/sub_teacher_menu02.gif" width="70" height="24" border="0" /></a></td>
<td width="26" bgcolor="#000000"><img src="../admin/images/sub_menu_line.gif" width="26" height="24" /></td>
<td width="46" bgcolor="#000000"><a href="<?php echo $path; ?>courseValuation.php"><img src="../admin/images/sub_teacher_menu03.gif" width="70" height="24" border="0" /></a></td>
<td width="26" bgcolor="#000000"><img src="../admin/images/sub_menu_line.gif" width="26" height="24" /></td>
<td width="46" bgcolor="#000000"><a href="../bbs/board.php?bo_table=t_<?php echo $teacherid; ?>"><img src="../admin/images/sub_teacher_menu05.gif" width="62" height="24" border="0" /></a></td>
<td width="26" bgcolor="#000000"><img src="../admin/images/sub_menu_line.gif" width="26" height="24" /></td>
<td width="122" bgcolor="#000000"><a href="<?php echo $path; ?>courseMonthly.php"><img src="../admin/images/sub_teacher_menu04.gif" width="110" height="24" border="0" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="823" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table width="98%" border="0" cellpadding="3" cellspacing="0" class="font">
<tr>
<td width="30"><img src="../admin/images/1blank.gif" width="1" height="1" /></td>
<td valign="top">
